package Practice08.test5;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class TestHashMap {
    public static void main(String[] args) {

        Map<String,Integer> map = new HashMap<>();
        Scanner sc = new Scanner(System.in);
        String str = sc.nextLine();
        String[] strings = str.split("");

        for (int i = 0; i < str.length(); i++) {
            if(!map.containsKey(strings[i])){
                map.put(strings[i],1);
            }else {
                Integer count = map.get(strings[i]);
                map.put(strings[i],count+1);
            }
        }

        for (String key : map.keySet()) {
            System.out.println(key + "出现" + map.get(key) + "次");
        }
    }
}
